package com.yang.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class UserEntity {

    @Id
    @Column(name = "id")
    private long id;

    @Column(name = "num")
    private String num;

    @Column(name = "password")
    private String password;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "img_url")
    private String imgUrl;

    @Column(name = "identification")
    private String identification;

    public UserEntity() {
    }

    /**
     *
     * @param id
     * @param num
     * @param password
     * @param userName
     * @param imgUrl
     * @param identification
     */
    public UserEntity(long id,String num,String password,String userName,String imgUrl,String identification) {
        this.id = id;
        this.num = num;
        this.password = password;
        this.userName = userName;
        this.imgUrl = imgUrl;
        this.identification = identification;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", num='" + num + '\'' +
                ", password='" + password + '\'' +
                ", userName='" + userName + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", identification='" + identification + '\'' +
                '}';
    }
}
